
import { _decorator, Component, Node } from 'cc';
import EventManager from '../../Runtime/EventManager';
import { CONTROLLER_ENUM, EVENT_ENUM } from '../../Enum';
const { ccclass, property } = _decorator;

/**
 * Predefined variables
 * Name = ControllerManager
 * DateTime = Tue Jun 27 2023 10:16:01 GMT+0800 (中国标准时间)
 * Author = zshzshzsh15
 * FileBasename = ControllerManager.ts
 * FileBasenameNoExtension = ControllerManager
 * URL = db://assets/Script/UI/ControllerManager.ts
 * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
 *
 */

@ccclass('ControllerManager')
export class ControllerManager extends Component {

    handleCtrl(evt:Event,type:string){
        EventManager.Instance.emit(EVENT_ENUM.PLAYER_CTRL,type as CONTROLLER_ENUM )//强转化
    }
}


